package cn.edu.hy.demo01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo01TestSpring {

	
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext01.xml");
		
		HelloSpring helloSpring = (HelloSpring) context.getBean(HelloSpring.class);
//		HelloSpring helloSpring = new HelloSpring();
		helloSpring.sayHello();
	}
	
}
